package org.future.wsdl.data;

import javax.xml.namespace.QName;

/**
 * wsdl:portType -> wsdl:operation -> wsdl:fault 元素信息
 * @author dycc
 *
 */
public class WsdlFault {
    
    private String name;
    
    private QName msgQName;
    
    private QName actionQName;
    
    private String actionVal;
    
    // name
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    // msgQName
    public QName getMsgQName() {
        return msgQName;
    }
    public void setMsgQName(QName msgQName) {
        this.msgQName = msgQName;
    }
    // actionQName
    public QName getActionQName() {
        return actionQName;
    }
    public void setActionQName(QName actionQName) {
        this.actionQName = actionQName;
    }
    // actionVal
    public String getActionVal() {
        return actionVal;
    }
    public void setActionVal(String actionVal) {
        this.actionVal = actionVal;
    }
    /**
     * toString
     */
    public String toString(){
       StringBuffer sb = new StringBuffer();
       sb.append("<wsdl:fault");
       sb.append(" message=\"" + msgQName.getPrefix() + ":" + msgQName.getLocalPart() + "\"");
       sb.append(" name=\"" + name + "\"");
       sb.append(" " + actionQName.getPrefix() + ":" + actionQName.getLocalPart() + "=\"" + actionVal + "\"");
       sb.append(" />");
       return sb.toString();
    }
}
